package Level02_five;

import java.util.HashSet;
import java.util.Random;

public class Test {
    public static void main(String[] args) {
        Random random = new Random();
        HashSet<Object> hashSet = new HashSet<>();
        while (hashSet.size() < 10) {
            int i = random.nextInt(20) + 1;
            hashSet.add(i);
        }
        System.out.println(hashSet);
    }
}
